*===============================================================================*
*																				*
*		THIS DO FILE PRODUCES THE RESULTS IN LONDONO-VELEZ AND QUERUBIN			*
*		"THE IMPACT OF EMERGENCY CASH ASSISTANCE IN A PANDEMIC: EXPERIMENTAL 	* 
* 		EVIDENCE FROM COLOMBIA", REVIEW OF ECONOMICS AND STATISTICS				*
*																				*
*		LAST MODIFIED: 2021-02-02												*
*																				*
*===============================================================================*

clear		all
set			more off
set			maxvar 10000

/*			SET PATHS. To run, modify these paths in the obvious way			*/

global		rootdir				"/Users/julianalondono-velez/Dropbox/DevolucionIVA/Submissions/REStat/Submission3"

global 		datadir		 		"${rootdir}/ReplicationFiles/Data" 						// the folder with publicly available data.
global		codedir				"${rootdir}/ReplicationFiles/Code"						// the folder that has this code in it.
global		figtabledir			"${rootdir}/Tables&Figures"								// the folder you want to save the figures and tables into

cd 			"${figtabledir}"

* 			Set baseline controls
global		control_lin "female age_01apr2020 victim cod_urban cm sisben3 sisben nosisben4"
global 		control_fe "tip_estado_civil_DPS_data inc5"
	
*-------------------------------------------------------------------------------*
*			FIGURES																*
*-------------------------------------------------------------------------------*


/*			Figure 2A: Sources of Concern Vis-a-Vis the COVID Crisis			*/
			
do			"${codedir}/F2A.do"

/*			Figure 2B: Difficulties Faced since Schools Closed					*/
			
do			"${codedir}/F2B.do"

/*			Figure 3A: Accurate Perception of the Transfer Value				*/
			
do			"${codedir}/F3A.do"

/*			Figure 3B:  Most Common Spending Items for VAT Compensation			*/
			
do			"${codedir}/F3B.do"

*-------------------------------------------------------------------------------*
*			TABLES																*
*-------------------------------------------------------------------------------*


/*			Table 1: Treatment Effects on Household Financial Health 			*/

do			"${codedir}/T1.do"
 
/*			Table 2: Treatment Effects on Political Attitudes		 			*/

do			"${codedir}/T2.do"

*-------------------------------------------------------------------------------*
*			APPENDIX FIGURES AND TABLES											*
*-------------------------------------------------------------------------------*


/*			Figure A1: The Most Common Ways Households Learned about the VAT 
						Compensation 											*/
			
do			"${codedir}/OnlineAppendix/FA1.do"

/*			Figure A2: The Most Common Difficulties Experienced when Receiving 
						the VAT Compensation 									*/
			
do			"${codedir}/OnlineAppendix/FA2.do"

/*			Table A1: Baseline Differences in the Survey Response Rate and 
						Sociodemographic Variables								*/

do			"${codedir}/OnlineAppendix/TA1.do"

/*			Table A2: Baseline Differences in Survey Completion					*/

do			"${codedir}/OnlineAppendix/TA2.do"

/*			Table A3: The Salience of the VAT Compensation is High				*/

do			"${codedir}/OnlineAppendix/TA3.do"

/*			Table A4: Treatment Effects on Outcomes with Reference to the 
						“Last Week"												*/

do			"${codedir}/OnlineAppendix/TA4.do"

/*			Table A5: Treatment Effects on Household Food Security				*/

do			"${codedir}/OnlineAppendix/TA5.do"

/*			Table A6: Treatment Effects on Household Mental Health				*/

do			"${codedir}/OnlineAppendix/TA6.do"

/*			Table A7: Treatment Effects on Parental Investment in Children's 
						Education												*/

do			"${codedir}/OnlineAppendix/TA7.do"

/*			Table A8: Pre-Registered Heterogeneous Treatment Effects on Index
						Outcomes												*/

do			"${codedir}/OnlineAppendix/TA8.do"

/*			Table A9: Baseline Differences in the Survey Response Rate and 
				Sociodemographic Variables by Mode of Transfer in May: 
				Treated Households Only											*/

do			"${codedir}/OnlineAppendix/TA9.do"
				
/*			Table A10: Treatment Effects on Behaviors to Mitigate the Spread of 
						COVID-19												*/

do			"${codedir}/OnlineAppendix/TA10.do"

/*			Table A11: The Likelihood of Visiting a bank or ATM in May 2020 by 
						Mode of Transfer										*/

do			"${codedir}/OnlineAppendix/TA11.do"

/*			Table A12: Index Measure of Behaviors to Mitigate the Spread of 
						COVID-19: Including vs. Excluding Visits to Bank or ATM	*/

do			"${codedir}/OnlineAppendix/TA12.do"

/*	 		Table A13: The Impact of the Transfer on Visits Received at Home in 
						May														*/	
 
do			"${codedir}/OnlineAppendix/TA13.do"
 
/* 			Table C14: Treatment Effects on Household Physical Symptoms of 
						COVID-19												*/

do			"${codedir}/OnlineAppendix/TC14.do"
						
/* 			Table C15: Treatment Effects on Intimate Partner Violence under 	
						the Quarantine	
						*/
do			"${codedir}/OnlineAppendix/TC15.do"
						
/* 			Table C16: Treatment Effects on Weekly and Monthly Household 
						Expenditure												*/

do			"${codedir}/OnlineAppendix/TC16.do"						
